function fileExport(dataTable, tableId, fileName, count, limit, clickData) {
    if (clickData) {
        var checkStatus = dataTable.checkStatus(tableId);
        var datas = checkStatus.data;
        if (datas.length > 0) {
            //导出选中行
            dataTable.exportFile(tableId, datas, {
                type: 'xls',
                title: fileName
            });
        }
    } else {
        dataTable.reload(tableId, {
            page: 1,
            limit: count, //加载所有数据
            done: function () {
                //导出所有数据
                dataTable.exportFile(tableId, false, {
                        type: 'xls',
                        title: fileName
                    }
                );
                //恢复数据分页显示
                dataTable.reload(tableId, {
                    page: 1,
                    limit: limit,
                    done: function (res, curr, count) {
                        let tableDataCount = count;
                    }
                })
            }

        })
    }
}